﻿<html>
<head>
<script type="text/javascript">
function checkReset(){
    if ( !confirm("确认重置表单吗？")){
        return false;
    }
}
</script>
</head>
<body>
<form name="testform" onreset="return checkReset();">
<p>
您的名字：<input type="text" name="your_name" value="输入您的姓名" onfocus="this.value=''" />
<input type="reset" value="重置表单" />
</p>
</form>
</body>
</html>
